package com.zhang.dft_project.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 事件监听器
 */
@Component
public class NoticeListener implements ApplicationListener<NoticeEvent> {
    @Override
    public void onApplicationEvent(NoticeEvent event) {
        System.out.println("事件发生：" + event.getMsg());
    }

}
